package com.example.testapp.activity.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by l on 2016/9/22.
 */
public class PhoneDetailedItem extends SuperBean {

    private static final long serialVersionUID = 1L;

    private String  docid;
    private String  cid;  // 图片的id
    private String  isCollected;  // 是否收藏
    private String  title; // 图片标题
    private String  date;
    private String  author;
    private String  docUrl;
    private List<String>  content = new ArrayList<String>();  // 详细内容
    private List<String>  picUrl = new ArrayList<String>();  // url集

    public String getDocid() {
        return docid;
    }

    public void setDocid(String docid) {
        this.docid = docid;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getIsCollected() {
        return isCollected;
    }

    public void setIsCollected(String isCollected) {
        this.isCollected = isCollected;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDocUrl() {
        return docUrl;
    }

    public void setDocUrl(String docUrl) {
        this.docUrl = docUrl;
    }

    public List<String> getContent() {
        return content;
    }

    public void setContent(List<String> content) {
        this.content = content;
    }

    public List<String> getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(List<String> picUrl) {
        this.picUrl = picUrl;
    }

    @Override
    public String toString() {
        return "PhoneDetailedItem{" +
                "docid='" + docid + '\'' +
                ", cid='" + cid + '\'' +
                ", isCollected='" + isCollected + '\'' +
                ", title='" + title + '\'' +
                ", date='" + date + '\'' +
                ", author='" + author + '\'' +
                ", docUrl='" + docUrl + '\'' +
                ", content=" + content +
                ", picUrl=" + picUrl +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof PhoneDetailedItem){
            PhonePhotoItem item = (PhonePhotoItem) o;
            return this.docid.equals(item.docid);
        }
        return super.equals(o);
    }
}
